package com.xing.mybatis_plus.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 幸福好
 * @since 2020-10-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TContents对象", description="")
public class TContents implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "cid", type = IdType.AUTO)
    private Integer cid;

    private String title;

    @TableField("titlePic")
    private String titlePic;

    private String slug;

    @TableField(fill = FieldFill.INSERT)
    private Integer created;

    private Integer modified;

    @ApiModelProperty(value = "内容文字")
    private String content;

    @TableField("authorId")
    private Integer authorId;

    private String type;

    private String status;

    private String tags;

    private String categories;

    private Integer hits;

    @TableField("commentsNum")
    private Integer commentsNum;

    @TableField("allowComment")
    private Boolean allowComment;

    @TableField("allowPing")
    private Boolean allowPing;

    @TableField("allowFeed")
    private Boolean allowFeed;


}
